package com.ma.mapper;

import com.ma.entity.SysMenu;
import com.ma.entity.SysUser;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper {
    public List<SysUser> selectAll();

    SysUser getAllByUsername(String username);

    SysUser getByUsernameById(Long id);

    List<SysUser> getALLByMenuId(Long menuId);

    List<SysUser> getAllByRoleId(Long roleId);

    SysUser getUserById(Long id);

    List<SysUser> listByUsername(String username);

    void update(SysUser sysUser);

    void save(SysUser sysUser);

    void deleteUserById(Long id);

    void repassByUserId(SysUser sysUser);
}
